<div id="all_content_page">
    <div class="main_content">
        <h1>News</h1>
            
        <?php foreach ($contents as $index => $content): ?>    
        <div class="content_item">
            <div class="item">
                <div class="image">
                    <a href="<?php echo site_url('content/view/'.$content->id);?>"><img title="<?php echo $content->title;?>" src="<?php echo base_url().'uploads/content/'.$content->id.'_thumb.jpg';?>"/></a>
                </div>
                <div class="description">
                    <h3><a href="<?php echo site_url('content/view/'.$content->id);?>"><?php echo $content->title;?></a></h3>
                    <p><a href="<?php echo site_url('content/view/'.$content->id);?>"><?php echo character_limiter(strip_tags($content->description),200);?></a></p>
                </div>        
            </div>    
            <div class="clear"></div>  
        </div>        
        <?php endforeach ?>
        
    </div>
    
    <div class="side_bar">
        <h1><a href="http://rssfeeds.sanook.com/rss/feeds/sanook/movie.now.xml">Now showing  From Sanook.com</a></h1>
        <?php foreach ($new_movie as $index => $content): ?>    
        <div class="content_item">
            <div class="item">
                <div class="image">
                    <a href="<?php echo $content->link;?>" target="_blank">
                        <img src="<?php echo $content->enclosure['url'];?>" />
                        
                    </a>
                </div>
                <div class="description">
                    <h3>
                    <a href="<?php echo $content->link;?>" target="_blank"><?php echo $content->title;?></a></h3>
                    <p><a href=""><?php echo character_limiter(preg_replace("/<img[^>]+\>/i", " ", $content->description),500);?></a></p>
                    <?php //print_r($content);?>
                </div>        
            </div>    
            <div class="clear"></div>  
        </div>        
        <?php endforeach ?>
    </div>
    
    <div class="clear"></div>        
</div>    